package extend;

/**
 * @author shkstart
 * @date 2022/5/7 - 21:38
 */

public class Student extends Person {

    String major;

    public Student(String name, int age, String major){
        this.name = name;
//        this.age = age;
        setAge(age);
        this.major = major;
    }


    public void major(){
        System.out.println("工作");
    }
}
